package com.syb.service;

import java.util.List;

import com.syb.entity.function.SysResource;
import com.syb.util.PageResults;

public interface ResourceService {
	
	public PageResults<SysResource> findSysResourcesList(PageResults<SysResource> page) throws Exception;
	
	/**
	 * @see查询所有顶级菜单
	 * @return
	 * @throws Exception
	 */
	public List<SysResource> findResourcesDing()throws Exception;
	
	/**
	 * @see 添加资源
	 * @param sys
	 * @throws Exception
	 */
	public void insertResource(SysResource sys) throws Exception;
	
	/**
	 * @see 删除资源
	 * @param sys
	 * @throws Exception
	 */
	public void delResource(SysResource sys) throws Exception;
	
	/**
	 * @see 更新资源
	 * @param sys
	 * @throws Exception
	 */
	public void updateResource(SysResource sys) throws Exception;
	
	/**
	 * @see 根据名称查询资源
	 * @param name
	 * @return
	 * @throws Exception
	 */
	public List<SysResource> findResourceByName(SysResource name) throws Exception;

}
